package com.tcwlkj.uuService.model;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.List;

/**
 * Created by Administrator on 2017/10/25 0025.
 */

public class MyAccountModel {
    private String NowIncome;
    private String TotalIncome;
    private List<Rows> Rows;

    public MyAccountModel(List<MyAccountModel.Rows> rows) {
        Rows = rows;
    }

    public String getNowIncome() {
        if(NowIncome==null){
            return "0.00";
        }
        BigDecimal bd = new BigDecimal(NowIncome);
        return bd.setScale(2, RoundingMode.HALF_UP).toString()+"元";
    }

    public void setNowIncome(String nowIncome) {
        NowIncome = nowIncome;
    }

    public String getTotalIncome() {
        if(TotalIncome==null){
            return "0.00";
        }
        BigDecimal bd = new BigDecimal(TotalIncome);
        return bd.setScale(2, RoundingMode.HALF_UP).toString()+"元";
    }

    public void setTotalIncome(String totalIncome) {
        TotalIncome = totalIncome;
    }

    public List<MyAccountModel.Rows> getRows() {
        return Rows;
    }

    public void setRows(List<MyAccountModel.Rows> rows) {
        Rows = rows;
    }

    public static class Rows{
        private String RNum;//序号
        private String ID;//记录ID
        private String UserID;//用户ID
        private String Mobile;//用户手机号
        private String Money;//交易金额
        private String RealMoney;//交易金额
        private String BeforeMoney;//交易前余额
        private String AfterMoney;//交易后金额
        private String SubjectName;//交易科目描述
        private String AddTime;//交易时间
        private String OrderID;//扩展订单ID
        private String Desc;//交易描述
        private String ExtendID;//扩展数据ID
        private String Business;//交易业务
        private String Mode;//交易方式
        private String TradeNo;//交易流水号
        private String OutTradeNo;//三方交易流水号
        private int InOut;
        private String Remarks;

        public String getRealMoney() {
            BigDecimal bd = new BigDecimal(RealMoney);
            return bd.setScale(2, RoundingMode.HALF_UP).toString();
        }

        public void setRealMoney(String realMoney) {
            RealMoney = realMoney;
        }

        public String getRemarks() {
            return Remarks;
        }

        public void setRemarks(String remarks) {
            Remarks = remarks;
        }

        public int getInOut() {
            return InOut;
        }

        public void setInOut(int inOut) {
            InOut = inOut;
        }

        public String getRNum() {
            return RNum;
        }

        public void setRNum(String RNum) {
            this.RNum = RNum;
        }

        public String getID() {
            return ID;
        }

        public void setID(String ID) {
            this.ID = ID;
        }

        public String getMobile() {
            return Mobile;
        }

        public void setMobile(String mobile) {
            Mobile = mobile;
        }

        public String getUserID() {
            return UserID;
        }

        public void setUserID(String userID) {
            UserID = userID;
        }

        public String getMoney() {
            BigDecimal bd = new BigDecimal(Money);
            return bd.setScale(2, RoundingMode.HALF_UP).toString();
        }

        public void setMoney(String money) {
            Money = money;
        }

        public String getBeforeMoney() {
            return BeforeMoney;
        }

        public void setBeforeMoney(String beforeMoney) {
            BeforeMoney = beforeMoney;
        }

        public String getAfterMoney() {
            BigDecimal bd = new BigDecimal(AfterMoney);
            return bd.setScale(2, RoundingMode.HALF_UP).toString();
        }

        public void setAfterMoney(String afterMoney) {
            AfterMoney = afterMoney;
        }

        public String getSubjectName() {
            return SubjectName;
        }

        public void setSubjectName(String subjectName) {
            SubjectName = subjectName;
        }

        public String getAddTime() {
            return AddTime;
        }

        public void setAddTime(String addTime) {
            AddTime = addTime;
        }

        public String getOrderID() {
            return OrderID;
        }

        public void setOrderID(String orderID) {
            OrderID = orderID;
        }

        public String getDesc() {
            return Desc;
        }

        public void setDesc(String desc) {
            Desc = desc;
        }

        public String getExtendID() {
            return ExtendID;
        }

        public void setExtendID(String extendID) {
            ExtendID = extendID;
        }

        public String getBusiness() {
            return Business;
        }

        public void setBusiness(String business) {
            Business = business;
        }

        public String getMode() {
            return Mode;
        }

        public void setMode(String mode) {
            Mode = mode;
        }

        public String getTradeNo() {
            return TradeNo;
        }

        public void setTradeNo(String tradeNo) {
            TradeNo = tradeNo;
        }

        public String getOutTradeNo() {
            return OutTradeNo;
        }

        public void setOutTradeNo(String outTradeNo) {
            OutTradeNo = outTradeNo;
        }
    }
}
